<?php
header('Content-Type: text/html;charset=UTF-8');
require_once('../../sys/C_base.php');
C_base::yn_file('base'.DS.'class.util.php');
$id = C_base::dybase('func')->_get('id');
if(@$id){
	$cha = C_base::M('material.file')->get($id);
	$lj = C_base::M('material.file')->getlj($id);
	header('Content-Type: application-x/force-download');
	header('Content-Disposition: attachment; filename="' . basename($lj) .'"');  //路径
	header('Content-length:'.filesize($lj));   //文件名
	ob_start();
	// for IE6
	if (false === strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) {
		header('Cache-Control: no-cache, must-revalidate');
	}
	print_r($cha);
}